package cn.xiongxf.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserRegisterDto {
    @Size(min = 6,max = 18,message = "密码格式不正确")
    private String password;

    @NotEmpty(message = "密码不能为空")
    private String imageCode;

    @Size(min = 11,max = 11,message = "手机号格码式不正确")   // 规范的用regexp
    private String mobile;

    @NotNull(message = "非法请求")
    private Integer regChannel;

    @NotEmpty(message = "短信验证码不能为空")
    private String smsCode;

    // 推荐码
    private String recommendCode;
}
